package com.macro.mall.mapper;

import com.macro.mall.model.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BmsSightseeingBusMapper {
    long countByExample(BmsSightseeingBusExample example);

    int deleteByExample(BmsSightseeingBusExample example);

    int deleteByPrimaryKey(Long id);

    int insert(BmsSightseeingBus record);
 
    int insertSelective(BmsSightseeingBus record);

    List<BmsSightseeingBus> selectByExample(BmsSightseeingBusExample example);


    List<BmsSightseeingBus> selectAll(BmsSightseeingBus bmsSightseeingBus);


    BmsSightseeingBus selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") BmsSightseeingBus record, @Param("example") BmsSightseeingBusExample example);

    int updateByExample(@Param("record") BmsSightseeingBus record, @Param("example") BmsSightseeingBusExample example);

    int updateByPrimaryKeySelective(BmsSightseeingBus record);

    int updateByPrimaryKey(BmsSightseeingBus record);

    int updateByNew(List<Long> ids);


    //小程序查询观光车列表
    List<BmsSightseeingBus> selectXiaochengxu();


    //小程序查询观光车详情
    List<BmsSightseeingBus> selectMpDetail(Long id);


    //新的更新观光车
    int updateId(BmsSightseeingBus bmsSightseeingBus);


    BmsSightseeingBus selectPcDetail(Long id);


    List<BmsSightseeingBus> selectMpDetailNew(BmsSightseeingBus bmsSightseeingBus);



    BmsSightseeingBus getBusDetail(BmsSightseeingBus bmsSightseeingBus);
}